<%-- 
    Document   : rpt_saldosFacturas2f
    Created on : 08-30-2012, 11:36:37 AM
    Author     : marco.castro
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
<jsp:include page="includeCSSjs.jsp"/>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
<script type="text/javascript">
$(document).ready(function() {
    $("#form1").validate();
});

function showReport(){
	
	var date1 = formateaFecha("cal-field-1");
	var date2 = formateaFecha("cal-field-2");
	var url = "http://192.168.1.20:8181/pentaho/content/reporting/reportviewer/report.html?solution=Reportes+Bodega&path=&name=saldodefacturas.prpt#fechainicio="+date1+"&fechafin="+date2+"&output-target=pageable%252Fpdf&%253A%253Asession=34a38b0c-1a13-11e2-8ac6-3b95f553a11e&showParameters=true&solution=Reportes+Bodega&name=saldodefacturas.prpt&path=";
	window.open(url,'_self',false);
		 

}
</script>
    </head>
    <body>
        <font class="divTextoEncabezado">Reporte de Saldos de Facturas Entre Dos Fechas</font>
        <br><br>
<form id="form1" name="form1" action="">
<table width="45%" border="0">
  <tr>
    <td width="30%"><label class="text0">Fecha Inicial</label> </td>
    <td width="70%">
<input type="text" id="cal-field-1" name="fechai" size="17" maxlength="10" value="" class="required date inputCalendario0"/>
<input type=image src="../resources/img/calendario.png" width="16" height="16" id="cal-button-1" class="inputCalendario">
<script type="text/javascript">
            Calendar.setup({
              inputField    : "cal-field-1",
              button        : "cal-button-1",
              align         : "Br"
            });
</script>
    </td>
  </tr>
</table>



<div class='divTablaDerecha'>
<table width="120%" border="0">
  <tr>
    <td width="30%"><label class="text0">Fecha Final</label> </td>
    <td width="70%">
<input type="text" id="cal-field-2" name="fechaf" size="17" maxlength="10" value="" class="required date inputCalendario0"/>
<input type=image src="../resources/img/calendario.png" width="16" height="16" id="cal-button-2" class="inputCalendario">
<script type="text/javascript">
            Calendar.setup({
              inputField    : "cal-field-2",
              button        : "cal-button-2",
              align         : "Br"
            });
</script>
    </td>
  </tr>
 </table>
</div>
<div class='divBotonGenerarReporte0'>
<a href="#" onclick="showReport()"><img src="../resources/img/boton_generarReporte.png" width="123" height="31" class="inputBoton"></a>
</div>
</form>
<br><br><br>
<div class='divTablaRpt0'>
</div>
</body>
</html>
